from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from configs import dburl
import pymysql
pymysql.install_as_MySQLdb()
app = Flask(__name__)

app.app_context().push()
#######################################cfg
app.config['SQLALCHEMY_DATABASE_URI'] = dburl
#######################################
db = SQLAlchemy(app)

